<template>
    <div class="Result">
        <h2>当前结果为：{{ Resultstore.result }},{{ Resultstore.BigResult }}</h2>
        <select v-model.number="n">
            <option value="1">1</option>
            <option value="2">2</option>
            <option value="3">3</option>
        </select>
        <button @click="Resultstore.multiply(n)">乘</button>
        <button @click="Resultstore.divide(n)">除</button>
    </div>
</template>
<script setup lang="ts" name="Result">
import { ref } from 'vue';
import useResultstore from '@/store/result';
const Resultstore=useResultstore();

    let n=ref(1);
</script>
<style scoped>
.Result{
    background-color: skyblue;
    padding: 10px;
    border-radius: 10px;
    box-sizing: 0 0 10px;
}
select,button{
    margin: 0 5px;
    height: 25px;
   }
</style>